package com.shenbao.service.impl;

import com.shenbao.beans.ExpertAdvice;
import com.shenbao.dao.ExpertAdviceMapper;
import com.shenbao.service.IExpertAdviceService;
import com.shenbao.vo.ExpertAdviceVO;

import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

@Service("ExpertAdviceServiceImpl")
public class ExpertAdviceServiceImpl implements IExpertAdviceService {
    @Resource
    public ExpertAdviceMapper expertAdviceMapper;

    public int deleteByPrimaryKey(Integer id) {
        return expertAdviceMapper.deleteByPrimaryKey(id);
    }

    public int insert(ExpertAdvice record) {
        return expertAdviceMapper.insert(record);
    }

    public int insertSelective(ExpertAdvice record) {
        return expertAdviceMapper.insertSelective(record);
    }

    public ExpertAdvice selectByPrimaryKey(Integer id) {
        return expertAdviceMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(ExpertAdvice record) {
        return expertAdviceMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(ExpertAdvice record) {
        return expertAdviceMapper.updateByPrimaryKey(record);
    }

    public int getTotalCount() {
        return expertAdviceMapper.getTotalCount();
    }

    public int getCountByParameterName(String parameterName) {
        return expertAdviceMapper.getCountByParameterName(parameterName);
    }

    public List<ExpertAdvice> selectByPaingAndCondition(Map<String, String> map) {
        return expertAdviceMapper.selectByPaingAndCondition(map);
    }

	@Override
	public List<ExpertAdviceVO> getExpertAdviceByProjectapplayid(
			Map<String, String> map) {
		return expertAdviceMapper.getExpertAdviceByProjectapplayid(map);
	}

	@Override
	public int updateexpertadvicebyexpertid(ExpertAdvice record) {
		return expertAdviceMapper.updateexpertadvicebyexpertid(record);
	}

	@Override
	public ExpertAdvice getExpertAdviceByExpertidAndProjectApplyid(
			Map<String, String> map) {
		return  expertAdviceMapper.getExpertAdviceByExpertidAndProjectApplyid(map);
	}
}